

export class Message<T>{
    code:number ;
    message:string;
    data?:T;
    constructor(code:number,message:string,data?:T){
        this.code = code;
        this.message = message;
        this.data = data;
    }
    public getCode(){
        return this.code;
    }
    public getMessage(){
        return this.message;
    }
    public getData(){
        return this.data;
    }

}